import request from "@/utils/request";

/// <summary>
/// PC获取所有交班消息
/// </summary>
/// <returns></returns>
export const Get_shifts = async (obj: any): Promise<any> => {
  return request({
    url: "/Shifts/Pagination",
    method: "get",
    params: obj,
  });
};

/// <summary>
/// PC获取所有交班消息
/// </summary>
/// <returns></returns>
export const Get_em_name = async (obj: any): Promise<any> => {
  return request({
    url: "/Employees/Get_em_name",
    method: "get",
    params: obj,
  });
};

/**
 * 修改交班
 * @param obj
 * @returns
 */
export const Up_shifts = async (obj?: any): Promise<any> => {
  return request({
    url: "/Shifts/Update",
    method: "post",
    data: obj,
  });
};
